package com.dailyblue.project.estate.car.feign;

import com.dailyblue.project.estate.car.feign.plan.OwnerFeignPlanB;
import com.dailyblue.project.estate.commons.bean.Owner;
import com.dailyblue.project.estate.commons.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "estate-owner", path = "/owner", fallback = OwnerFeignPlanB.class)
public interface OwnerFeign {
    @GetMapping("/{id}")
    JsonResult<Owner> getOwner(@PathVariable("id") String id);
}
